﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace _04_2.UnitTestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {            
            int[] array = { 2, 4, 7, 2, 2, 7, 15, 56, -3, 15, 2, 2, 4 };            
            int result = CountNumberInArray.Count(array, 2);
            Assert.AreEqual(5, result);
        }

        [TestMethod]
        public void TestMethod2()
        {
            int[] array = { 2, 4, 7, 2, 2, 7, 15, 56, -3, 15, 2, 2, 4 };
            int result = CountNumberInArray.Count(array, 4);
            Assert.AreEqual(2, result);
        }
    }
}
